import request from '@/utils/request'

export function getCompanyList() {
  return request({
    url: '/company/department'

  })
}
// 删除部门的接口
export function delCompanyList(id) {
  return request({
    url: '/company/department/' + id,
    method: 'DELETE'

  })
}
// 获取部门信息根据id
export function getCompanyListForId(id) {
  return request({
    url: '/company/department/' + id

  })
}

// 修改数据的接口
export function putCompanyListForId(data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'PUT',
    data

  })
}
